package 结构型模型.装饰器模式;

public class Client {
    public static void main(String[] args) {
       Car car=new Car();
       FlyCar f=new FlyCar(car);
       WaterCar w=new WaterCar(f);
       w.run();
    }
}
